package com.wzcx.orclib;

import android.content.Context;
import android.content.Intent;

public class PhotoAgent {

  public static Intent getPhotoIntent(Context context,String outPath,MaskConfig config){
    Intent intent = new Intent(context,CameraActivity.class);
    intent.putExtra(CameraActivity.KEY_OUTPUT_FILE_PATH,outPath);
    intent.putExtra(CameraActivity.KEY_NEED_CROP,false);
    intent.putExtra(CameraActivity.KEY_MASK_CONFIG,config);

    return intent;
  }

  public static Intent getPhotoIntent(Context context,String outPath,MaskConfig config,boolean nextStartGallery){
    Intent intent = new Intent(context,CameraActivity.class);
    intent.putExtra(CameraActivity.KEY_OUTPUT_FILE_PATH,outPath);
    intent.putExtra(CameraActivity.KEY_NEED_CROP,false);
    intent.putExtra(CameraActivity.KEY_MASK_CONFIG,config);
    intent.putExtra(CameraActivity.KEY_CHOOSE_PHOTO,nextStartGallery);
    return intent;
  }

}
